package org.example.elm_springboot.mapper;

import org.example.elm_springboot.po.DeliveryAddress;
import java.util.List;

public interface DeliveryAddressMapper {
    // 根据用户编号查询所属送货地址
    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId);
    
    // 根据送货地址编号查询送货地址
    public DeliveryAddress getDeliveryAddressById(Integer daId);
    
    // 向送货地址表中添加一条记录
    public int saveDeliveryAddress(DeliveryAddress deliveryAddress);
    
    // 更新送货地址信息
    public int updateDeliveryAddress(DeliveryAddress deliveryAddress);
    
    // 根据送货地址编号删除一条记录
    public int removeDeliveryAddress(Integer daId);
} 